package com.github.kezhenxu94.data.common;

/**
 * Created by kezhenxu on 1/5/17.
 *
 * @author kezhenxu (kezhenxu94@163.com)
 */
public interface Lifecycle extends LoggerAware {
    void setup() throws Exception;

    void start() throws Exception;

    void close() throws Exception;

    boolean isRunning();
}
